#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

int main()
{
	printf("test exec function \n");
	if(fork() == 0)
	{
		if(execl("ex7-1","ex7-1",(char*)0) < 0 )
			printf("Exec error \n");
//		exit(0);
		while(1){
		};
	}else{
		sleep(2);
		while(1){
		};
	}	

	return 0;
}
